package cc.greencat.gcmall.ware.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cc.greencat.gcmall.common.utils.PageUtils;
import cc.greencat.gcmall.common.utils.Query;

import cc.greencat.gcmall.ware.dao.PurchaseInfoDao;
import cc.greencat.gcmall.ware.entity.PurchaseInfoEntity;
import cc.greencat.gcmall.ware.service.PurchaseInfoService;


@Service("purchaseInfoService")
public class PurchaseInfoServiceImpl extends ServiceImpl<PurchaseInfoDao, PurchaseInfoEntity> implements PurchaseInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PurchaseInfoEntity> page = this.page(
                new Query<PurchaseInfoEntity>().getPage(params),
                new QueryWrapper<PurchaseInfoEntity>()
        );

        return new PageUtils(page);
    }

}